/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dg.gaming.tictactoe.client.fx;

import com.dg.gaming.client.gui.GameImages;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;

/**
 *
 * @author dito
 */
public class TTTComponent extends JPanel{
    int imagePiece;
    public TTTComponent(int imagePiece){
        super();
        this.imagePiece=imagePiece;
    }
    public void  paintComponent(Graphics g){
        Image image = GameImages.getImage(imagePiece + 1); // image
        g.drawImage(image, 0, 0, null); // draw
    }
}
